package com.hxzy.research.service.pageandmanager.impl;

import com.hxzy.research.mapper.TblCourseMapper;
import com.hxzy.research.pojo.TblCourse;
import com.hxzy.research.service.pageandmanager.AddCourseManager;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class AddCourseMangerImpl implements AddCourseManager {
    @Autowired private TblCourseMapper tblCourseMapper;
    @Override
    public void addCourse(TblCourse tblCourse) throws Exception {
        tblCourseMapper.addCourse(tblCourse);
    }

    @Override
    public TblCourse findCourseById(Integer kid) throws Exception {
       return tblCourseMapper.findCourseById(kid);
    }

    @Override
    public void updateCourse(TblCourse tblCourse) throws Exception {
        tblCourseMapper.updateCourse(tblCourse);
    }

    @Override
    public void deleteCourse(Integer kid) throws Exception {
        tblCourseMapper.deleteCourse(kid);
    }
}
